<template>
  <span class="svg-scree" @click="screenFullBtn">
    <svg-icon icon-class="fullscreen" class=""></svg-icon>
  </span>
</template>

<script>
import screefull from "screenfull";
import screenfull from "screenfull";
export default {
  data() {
    return {};
  },
  methods: {
    screenFullBtn() {
      if (screefull.isEnabled) {
        screenfull.request();
      } else {
        this.$message.warning("当前浏览器不支持全屏");
      }
    },
  },
};
</script>

<style>
.svg-scree {
  margin-right: 20px;
  vertical-align: top;
  color: #fff;
}
</style>